﻿using System;

namespace Risk.Model
{
    public static class RandomDiceResult
    {
        private static readonly Random Random = new Random();
        public static int[] GenerateSortedArray(int numberOfDice)
        {
            var result = new int[numberOfDice];
            for (int i = 0; i < numberOfDice; i++)
                result[i] = Random.Next(1, 6);
            Array.Sort(result); // sorteert van laag naar hoog
            Array.Reverse(result); // reverse zodat hoog -> laag
            return result;
        }
    }
}
